﻿using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace Admin2020.Core.Domain.Core
{
    /// <summary>
    /// 日志
    /// </summary>
    public class Log:BaseEntity
    {
        /// <summary>
        /// 日志级别id
        /// </summary>
        [Column("log_level_id")]
        public int LogLevelId { get; set; }

        /// <summary>
        /// 短信息
        /// </summary>
        [Column("short_message")]
        public string ShortMessage { get; set; }

        /// <summary>
        /// 长信息
        /// </summary>
        [Column("full_message")]
        public string FullMessage { get; set; }

        /// <summary>
        /// ip地址
        /// </summary>
        [Column("ip_address")]
        public string IpAddress { get; set; }

        /// <summary>
        /// 用户id
        /// </summary>
        [Column("user_id")]
        public int? UsersId { get; set; }

        /// <summary>
        /// 页面url
        /// </summary>
        [Column("page_url")]
        public string PageUrl { get; set; }

        /// <summary>
        /// 引用URL
        /// </summary>
        [Column("reference_url")]
        public string ReferenceUrl { get; set; }
    }
}
